package com.synygy.bdviewer.model;


import org.hibernate.search.annotations.DocumentId;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.GeneratedValue;
import javax.persistence.Column;
import java.sql.Date;
import java.io.Serializable;

/**
 * Created by IntelliJ IDEA.
 * User: Popovici
 * Date: Sep 30, 2008
 * Time: 3:30:29 PM
 * To change this template use File | Settings | File Templates.
 */
@Entity
public class STIObject implements Serializable {

    private Integer id;
    private Date date;
    private String version;
    boolean success;
    String defectLogged;
    String moduleOrFeature;
    String rootCause;
    String personResponsible;

    @Id
    @DocumentId
    @GeneratedValue
    @Column()
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Column
    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    @Column(nullable=false)
    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    @Column(nullable=false)
    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    @Column
    public String getDefectLogged() {
        return defectLogged;
    }

    public void setDefectLogged(String defectLogged) {
        this.defectLogged = defectLogged;
    }

    @Column
    public String getModuleOrFeature() {
        return moduleOrFeature;
    }

    public void setModuleOrFeature(String moduleOrFeature) {
        this.moduleOrFeature = moduleOrFeature;
    }

    @Column
    public String getRootCause() {
        return rootCause;
    }

    public void setRootCause(String rootCause) {
        this.rootCause = rootCause;
    }

    @Column
    public String getPersonResponsible() {
        return personResponsible;
    }

    public void setPersonResponsible(String personResponsible) {
        this.personResponsible = personResponsible;
    }
}
